package com.gnerv.battle.boot.module.base.model.dto;

import com.gnerv.battle.boot.module.base.model.bo.ConfigBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class ConfigCreateDTO {

    private String code;
    private String name;
    private String value;
    private String status;
    private Integer sort;

    public ConfigBO toConfigBO() {
        ConfigBO configBO = new ConfigBO();
        BeanUtils.copyProperties(this, configBO);
        return configBO;
    }
}